import { LAYOUT } from '@/router/constant';
import { AppRouteModule } from '@/router/types';

const dpPlatform: AppRouteModule = {
  path: '/dp',
  name: 'dpPlatform',
  component: LAYOUT,
  redirect: '/dp/index',
  meta: {
    orderNo: 11,
    icon: 'ion:grid-outline',
    title: '数据平台',
  },
  children: [
    {
      path: 'index',
      name: 'QianguaIndex',
      component: () => import('@/views/dp_platform/index.vue'),
      meta: {
        // affix: true,
        title: '任务管理',
      },
    },
    {
      path: 'handle',
      name: 'handleIndex',
      component: () => import('@/views/dp_platform/handle.vue'),
      meta: {
        hideMenu: true,
        title: '创建任务',
        currentActiveMenu: '/dp/index',
      },
    },
    {
      path: 'dplist',
      name: 'dplist',
      component: () => import('@/views/dp_platform/dplist.vue'),
      meta: {
        hideMenu: true,
        title: '内容列表',
        currentActiveMenu: '/dp/index',
      },
    },
  ],
};

export default dpPlatform;
